package com.haogu.service;

import com.haogu.entity.Leads;
import com.haogu.entity.PLeads;
import com.haogu.entity.VLeads;


import java.util.Date;
import java.util.List;

public interface LeadsService {
    /**
     * 查询全部的Leads
     */
    List<Leads> selectAll();

    /**
     *查找所有被领取的并且没有被转换的客户
     */
    List<Leads> selectLeadsIsDrawNoTranformd();
    boolean insertLeads(Leads leads);
    List<VLeads> searchLeads(PLeads p);
    List<VLeads> searchLeadsChi(PLeads p);
    int rows();
    Leads selectLeadsById(Integer id);

    boolean deleteLeadsById(Integer id);

    boolean updateLeadsById(Leads leads);

    boolean updateTransformedInfoById(Integer id,Integer userId,Integer contactsId,Integer customerId);

    /**
     * 根据
     * @param leadsId
     * @param userId
     * @return
     */
    boolean updateOwnerUserId(Integer leadsId,Integer userId);

    boolean updateDeleteTime(Date date,Integer id);
}
